<?php
function quoteWords()
{
     return array_map('quoteWordsHelper',
            function ($string) {
                return preg_replace('/(\w)/','"$1"',$string);
            });
            }
$x = 1;
$closure = function() use (&$x) { ++$x; };

echo $x . "\n";
$closure();
echo $x . "\n";
$closure();
echo $x . "\n";

?>


